package com.woniuxy.rabbit.controller;

import com.woniuxy.rabbit.feign.OrderFeign;
import com.woniuxy.rabbit.service.OrderService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@AllArgsConstructor
public class OrderController {

    private OrderService orderService ;

    @PostMapping("/addOrder")
    @ResponseBody
    public String addOrder(Integer skuId){
        return orderService.addOrder(skuId);
    }

}
